package com.yict.csms.adminManage.dao;

import java.util.List;

import com.yict.common.dao.IBaseDao;
import com.yict.csms.adminManage.entity.ContractorRanking;

public interface IContractorRankingDao extends IBaseDao<ContractorRanking, Long> {
	/**
	 * 根据合同类别获得最大排名
	 * @param typeId
	 * @return
	 */
	Long findMaxRanking(Long typeId);

	/**
	 * 是否存在记录
	 * @param flag 标记-排名还是承包商
	 * @param contractorRanking 实体
	 * @param saveOrUpdate 保存还是更新 true-save
	 * @return
	 */
	boolean check(String flag, ContractorRanking contractorRanking, boolean saveOrUpdate);

	
	public List<ContractorRanking> verifyRanking(Long[] companyIds);
}
